determine whether a function is even nor odd